export const searchList = [
  {
    type: 'input',
    name: '科研标题',
    field: 'researchTitle',
  },
]

export const listColumns = [
  {
    title: '科研标题',
    key: 'researchTitle',
  },
  {
    title: '科研级别',
    key: 'researchLevelName',
  },
  {
    title: '科研类型',
    key: 'researchTypeName',
  },
  {
    title: '状态',
    key: 'statusName',
  },
  {
    title: '负责人',
    key: 'principal',
  },
  {
    title: '经费总额(万元)',
    key: 'budget',
  },
  {
    title: '最近更新时间',
    key: 'updateTime',
  },
]

export const actionArr = [
  {
    action: 'look',
    value: '查看',
  },
  {
    action: 'edit',
    value: '编辑',
  },
  {
    action: 'process',
    value: '办理',
    hiddenList: [
			{
				fileId: 'statusId',
				showTerm: ['150','151'],
			},
		]
  },
  {
    action: 'del',
    value: '删除',
  },
]
export const btnList = [
  {
    action: 'add',
    value: '新增',
    auth: ''
  }
];
export const rules = {
  researchTitle: [
    { required: true, message: '请输入科研标题', trigger: 'blur' },
  ],
  researchLevelId: [
    { required: true, message: '请选择科研级别', trigger: 'change' },
  ],
  researchTypeId: [
    { required: true, message: '请选择科研类型', trigger: 'change' },
  ],
  statusId: [
    { required: true, message: '请选择科研状态', trigger: 'change' },
  ],
  principal: [
    { required: true, message: '请输入负责人', trigger: 'change' },
  ],
  budget: [
    { required: true, message: '请输入经费总额', trigger: 'change' },
  ],
  startDate: [
    { required: true, message: '请选择开始时间', trigger: 'change' },
  ],
  endDate: [
    { required: true, message: '请选择结束时间', trigger: 'change' },
  ],
  resultFileId: [
    { required: true, message: '请上传成果', trigger: 'change' },
  ],
}